package com.tianji.contract.controller;


import com.tianji.common.Result;
import com.tianji.contract.pojo.VisitorAppointment;
import com.tianji.contract.service.VisitorAppointmentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 陈佳
 * @since 2024-10-15
 */
@RestController
@RequestMapping("/appointment")
@Api(value = "访客预约api")
public class VisitorAppointmentController {
    @Autowired
    private VisitorAppointmentService service;

    @PostMapping("/create")
    public Result createAppointment(@RequestBody VisitorAppointment appointment) {
        return service.createAppointment(appointment);
    }

}

